package org.jeecg.modules.procurement.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.procurement.entity.BussMaterialProcurementDetail;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementDetailVo;

import java.util.List;

/**
 * @Description: 原料采购订单明细
 * @Author: jeecg-boot
 * @Date:   2024-06-06
 * @Version: V1.0
 */
public interface IBussMaterialProcurementDetailService extends IService<BussMaterialProcurementDetail> {

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<BussMaterialProcurementDetail>
   */
	public List<BussMaterialProcurementDetailVo> selectByMainId(String mainId);


    public IPage<BussMaterialProcurementDetailVo> pageList(Page<BussMaterialProcurementDetailVo> page, QueryWrapper<BussMaterialProcurementDetailVo> queryWrapper);

    BussMaterialProcurementDetailVo computeQuantity(BussMaterialProcurementDetailVo vo);
}
